package one;

import java.io.FileInputStream;

import jxl.Sheet;
import jxl.Workbook;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;

@SuppressWarnings({ "deprecation", "unused" })
public class google_screenshot extends SeleneseTestCase {
	public SeleniumServer ss;
	@Before
	public void setUp() throws Exception {
		ss=new SeleniumServer();
		ss.start();
		selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.co.in");
		
		selenium.start();
	}



	@Test
	public void testUntitled() throws Exception {
		selenium.open("/");
		selenium.windowMaximize();
		selenium.click("id=gbi5");
		selenium.captureScreenshot("C://Users//Sirisha//Desktop//QA//ECLIPSE//eclipse_examples//screenshot.png");
		selenium.click("id=gmlas");
		selenium.waitForPageToLoad("60000");
		selenium.type("name=as_q","testing tools");
		Thread.sleep(5000);
			
		
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
		ss.stop();
	}
}

